package com.hdaccp.letting2.dao;
import com.hdaccp.letting2.entity.Role;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface RoleDao {
    public Role getRoleByUserName(String username) ;
    public Role getRoleByUserId(long id) ;
    public List<Role> queryAll() ;
    public long getTotalCount(@Param("rname") String rname) ;
    public List<Role> query(@Param("rname") String rname, @Param("limit") int limit, @Param("offset") int offset) ;
}
